<template>
	<view style="padding-top: 40%;">
		<!--别忘记了 components下面的 v-switch组件-->
		<soure :url="url"></soure>
		<view style="padding-left: 40%;">
			<v-switch v-model="on" size="0.9" :activeValue="1" :inactive-value="0" @change="toggleMode"></v-switch>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				url: 'https://ext.dcloud.net.cn/plugin?id=3469',
				on: true
			};
		},
		onLoad() {

		},
		methods: {
			toggleMode() {
				console.log("事件")
			}
		}
	};
</script>

<style lang="scss">
	page {
		background-color: $uni-bg-color;
	}
</style>
